
<?php foreach($query_photo->result() as $row){?>
	
		
		<div class="item">
                <img class="content"  href="javascript:showPiece(<?php echo $row->id ;?>)" src="/uploads/<?php echo $row->photo ;?>" title="<?php echo $row->name;?>"/>
                <div class="caption="><?php echo $row->name?></div>
            </div>
    		<?php 
			}
		?>

		
		<?php  /*<img class="item" src="<?php echo $row->photo ;?>"  title="<?php echo $row->name;" /> -->*/?>